grammar LibExpr;
//using submodule to build grammar
import CommonLexerRules;

prog:   stat+;
stat:   expr NEWLINE
    |   ID '=' expr NEWLINE
    |   NEWLINE
    ;

expr:   expr ('*' | '/' ) expr
    |   expr ('+' | '-') expr
    |   INT
    |   ID
    |   '(' expr ')'
    ;


